package in.muton.edushare.pages.univ;

import java.util.Arrays;

import in.muton.edushare.pages.common.NewDept;

import java.util.Arrays;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.UserRoles;

public class DeptCreate extends UnivBase {

	public DeptCreate(PageParameters params) {
		super(params);
		prc.check(Arrays.asList(UserRoles.ADMIN_ROLE));
		add(new NewDept("newDeptPanel", getModel()));
	}

	@Override
	public String getActivePage(PageParameters p) {
		return "DeptCreate";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
				+ getModel().getObject().getUniversityName()
				+ " | New Department | "
				+ ApplicationConstants.APPLICATION_NAME;
	}
}
